#ifndef _COMBOCONTROL_H_
#define _COMBOCONTROL_H_

#include "GameFont.h"
#include "Image.h"

class CComboControl
{
public:
	CComboControl(const TRectanglei& rectControl, CGameFont* pFont);
	~CComboControl();

	void Update(unsigned long dwCurrentTime);
	void Draw();

	void IncreaseMultiplier();
	int GetMultiplier() const  { return m_iMultiplier; } 

	void Reset();
	void Pause();
	void Unpause();

private:
	
	int GetMultiplierTime() const;


	int m_iMultiplier;
	
	int m_iTimeLeft;
	
	int m_iTotalTime;

	int capdo;
	unsigned long m_iLastUpdate;

	bool m_bPaused;

	CGameFont* m_pFont;
	TRectanglei m_rectControl;

	TImagePtr m_pProgressBorder;
	TImagePtr level;
	TImagePtr m_pProgressFill;
};

#endif  